package com.ohuang.demo.storage;

import android.content.Context


class SpStorageUtil(val context: Context, private val spName:String) {
    fun <T> get(key:String,default: T): SpStorage<T> {
        return SpStorage(context=context, spUtil = SPUtil.getInstance(spName), key = key, defaultValue = default)
    }
    fun <T> get(default: T): SpStorage2<T> {
        return SpStorage2(context=context, spUtil = SPUtil.getInstance(spName), defaultValue = default)
    }
}
